package com.avic.rong.search.api;

import com.avic.rong.api.HttpPostService;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import io.reactivex.Observable;
import retrofit2.Retrofit;

/**
 * Created by Chenjiaxin on 2019/7/24 14:10
 * E-Mail Address：16601203965@163.com
 */
public class SearchHomePageBuQuanApi extends BaseApi {

    private String title;

    public SearchHomePageBuQuanApi(RxAppCompatActivity rxAppCompatActivity, HttpOnNextListener listener, String title) {
        super(rxAppCompatActivity, listener);
        this.title = title;
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService service = retrofit.create(HttpPostService.class);
        return service.relateTitle(title);
    }

}
